﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class DetailDB
    {
        private int id = 0;
        public int ID
        {
            get { return this.id; }
            set { this.id = value; }
        }

        //0:tables;1:table;2:column;3:stored procedures;4:sp
        private int dbType = 0;
        public int DBType
        {
            get { return this.dbType; }
            set { this.dbType = value; }
        }

        //0:table;1:PK;2:column;3:sp
        private int imgIndex = 0;
        public int ImgIndex
        {
            get { return this.imgIndex; }
            set { this.imgIndex = value; }
        }

        private int parentID = 0;
        public int ParentID
        {
            get { return this.parentID; }
            set { this.parentID = value; }
        }

        private string name = null;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        private string realName = null;
        public string RealName
        {
            get { return this.realName; }
            set { this.realName = value; }
        }

        public DetailDB()
        {
        }

        public DetailDB(int dbType, int id, int parentID, string name, string realName, int imgIndex)
        {
            this.dbType = dbType;
            this.id = id;
            this.parentID = parentID;
            this.name = name;
            this.realName = realName;
            this.imgIndex = imgIndex;
        }
    }
}
